// Fill out your copyright notice in the Description page of Project Settings.

#include "WorldSignalParts.h"
#include "WorldEntityReferencing.h"

WORLD_ENTITY_META_DEFINE(FWorldSignalDependency, FWorldEntityPart);

FWorldSignalDependency::FWorldSignalDependency()
	: Super()
	, ID(this)
	, Type(this, "")
{}

FWorldSignalDependency::FWorldSignalDependency(FWorldEntityPart* parent, const pugi::xml_node& elem)
	: Super(parent, elem)
	, ID(this, elem, "id")
	, Type(this, "", elem, "type")
{}

FWorldSignalDependency::~FWorldSignalDependency()
{}

void FWorldSignalDependency::Resolve(FWorldEntityReferencing& referencing)
{
	Super::Resolve(referencing);
	referencing
		.Resolve(ID);
}
